package org.e_gold.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    public static String getDateByPattern(String pattern) {

        return new SimpleDateFormat(pattern).format(new Date());
    }

    public static String getDate() {

        return getDateByPattern("dd-MM-YYYY hh:mm:ss");
    }
}
